import { delToken, getToken } from '@/utils/storage'

export default {
  namespaced: true,
  state () {
    return {
      token: getToken() || ''
    }
  },
  mutations: {
    setStoreToken (state, payload) {
      state.token = payload
    },
    logout (state) {
      state.token = ''
      delToken()
    }
  },
  actions: {},
  getters: {}
}
